stop
Stops the template, typically hiding it or pausing its activity.
This method should handle tearing down or pausing the visual representation of the template and its content. Resources might be conserved when a template is stopped. The template should be resumable via a subsequent call to start. Calling stop()
on an already stopped template should be a no-op.
Stops the template and invokes a callback after any fade-out animations or transitions complete.
This provides a way to gracefully remove a template from display, ensuring that visual transitions are finished before proceeding with other actions defined in the callback
. If no animations are involved, the callback may be invoked immediately after stopping the template's core functions.
Parameters
A Runnable to be executed after the template has fully stopped and any associated animations have completed. The callback should not be null.